$def with (dns)

<html>
<head>
  <title> TTPod内部Dns管理 </title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" type="text/css" href="/static/css/base.css" />
</head>
<body>
<div align="center">
  <form method="post" action="/$dns.method/">
    <table border="0" cellpadding="3" width="600">
		<caption>TTPod内部Dns管理&nbsp;<br/>
			<a href="/go/">去新增</a>&nbsp;
			<a href="/">回首页</a>&nbsp;
		</caption>
		<tr><th>地址</th><td>
			<input type="text" size="65" name="host" value="$dns.host">
			<input type="hidden" name="method" value="$dns.method">
			<input type="hidden" name="id" value="$dns.id">
		</td></tr>
		<tr><th>域名</th><td><input type="text" size="65" name="domain" value="$dns.domain"></td></tr>
		<tr><th>备注</th><td><input type="text" size="65" name="comment" value="$dns.comment"></td></tr>
		<tr><th>密码</th><td><input type="password" size="35" name="password" value=""><font color="red">*管理员输入交互口令</<font></td></tr>
		<tr><th>&nbsp;</th><td align="center"><input type="submit" value="$dns.actionName"><font color="red">$dns.message</<font></td></tr>
	</table>
  </form>
  <hr/>
  <table border="0" cellpadding="3" width="600">
	<caption>TTPod内部Dns列表</caption>
      <tr>
	      <th>编号</th>
	      <th>地址</th>
	      <th>域名</th>
	      <th>备注</th>
	      <th>操作</th>
      </tr>
  $for row in dns.data:
      <tr>
      	  <td>$loop.index</td>
	      <td>$row[1]</td>
	      <td>$row[2]</td>
	      <td>$row[3]</td>
	      <td align="center">
	        <a href="/go/?method=mod&id=$row[0]&host=$row[1]&domain=$row[2]&comment=$row[3]">修改</a>&nbsp;
	        <a href="/go/?method=dis&id=$row[0]&host=$row[1]&domain=$row[2]&comment=$row[3]">删除</a>
	      </td>
      </tr>
  </table>
  <hr/>
  <table border="0" cellpadding="3" width="600">
	<caption>FAQ</caption>
	<tr>
	  <th>host设置</th>
	  <td><img alt="" src="/static/images/inner-dns-server.jpg" /></td>
	</tr>
	<tr>
	  <th>本地域名解析清除</th>
	  <td>运行--&gt;cmd--&gt;ipconfig /flushdns  回车</td>
	</tr>
  </table>
</div>
</body>
</html>